package com.bgs.mapper;

import com.bgs.pojo.Comments;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bgs.pojo.vo.Commentss;
import com.bgs.pojo.vo.ZeroComments;

import java.util.List;

/**
 * <p>
 * 评论表 Mapper 接口
 * </p>
 *
 * @author Asia
 * @since 2021-09-14
 */
public interface CommentsMapper extends BaseMapper<Comments> {

    List<ZeroComments> zeroCircleIdToFindComments(Integer circleId);

    List<ZeroComments> zeroEvaluateIdToFindComments(Integer evaluateId);

    boolean zeroAddCircleIdComments(Comments comments);

    boolean zeroAddEvaluateIdComments(Comments comments);

    boolean zeroDeleteCommentsId(Integer commentsId);

    List<Comments> zerobeforeUserIdToFindComments(Integer beforeUserId);

    List<Commentss> zeroCommentsIdToFindComments(Integer commentsId);

    List<ZeroComments> zeroOrderDetailIdToFindComments(Integer orderDetailId);

    boolean zeroAddOrderDetailIdComments(Comments comments);
}
